package cn.touna.jss.common.properties.disconf;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * User: lijie
 * Email:lijiewj51137@touna.cn
 * Date: 2017/7/31
 * Time: 15:00
 */
@Component
//@ConfigurationProperties(prefix = "yixin")
//@PropertySource("classpath:properties/yixin.properties")
@DisconfFile(targetDirPath = "disconf", filename = "yixin.properties")
public class YiXinProperties {
    private String userid;
    private String rc4key;
    private String publicKeyStr;
    private String urlYixinQueryLoan;
    private String urlYixinQueryBlackList;
    private String urlYixinGueryCreditScore;
    private String urlYixinGetQueriedHistory;

    private String user;
    private String passwd;
    private String apiUrl;
    private String apiUrlHttps;

    private String yixinzhichengUserName;  // 致诚阿福账号
    private String yixinzhichengSignKey;   // 致诚阿福秘钥
    private String yixinZhiChengCreditFraudUrl;
    private String yixinZhiChengCreditFraudApiName;
    private String yixinZhiChengCreditDecisionUrl;
    private String yixinZhiChengCreditDecisionApiName;

    @DisconfFileItem(name = "yixin.yixinzhichengUserName", associateField = "yixinzhichengUserName")
    public String getYixinzhichengUserName() {
        return yixinzhichengUserName;
    }

    public void setYixinzhichengUserName(String yixinzhichengUserName) {
        this.yixinzhichengUserName = yixinzhichengUserName;
    }

    @DisconfFileItem(name = "yixin.yixinzhichengSignKey", associateField = "yixinzhichengSignKey")
    public String getYixinzhichengSignKey() {
        return yixinzhichengSignKey;
    }

    public void setYixinzhichengSignKey(String yixinzhichengSignKey) {
        this.yixinzhichengSignKey = yixinzhichengSignKey;
    }

    @DisconfFileItem(name = "yixin.yixinZhiChengCreditFraudUrl", associateField = "yixinZhiChengCreditFraudUrl")
    public String getYixinZhiChengCreditFraudUrl() {
        return yixinZhiChengCreditFraudUrl;
    }

    public void setYixinZhiChengCreditFraudUrl(String yixinZhiChengCreditFraudUrl) {
        this.yixinZhiChengCreditFraudUrl = yixinZhiChengCreditFraudUrl;
    }

    @DisconfFileItem(name = "yixin.yixinZhiChengCreditFraudApiName", associateField = "yixinZhiChengCreditFraudApiName")
    public String getYixinZhiChengCreditFraudApiName() {
        return yixinZhiChengCreditFraudApiName;
    }

    public void setYixinZhiChengCreditFraudApiName(String yixinZhiChengCreditFraudApiName) {
        this.yixinZhiChengCreditFraudApiName = yixinZhiChengCreditFraudApiName;
    }

    @DisconfFileItem(name = "yixin.yixinZhiChengCreditDecisionUrl", associateField = "yixinZhiChengCreditDecisionUrl")
    public String getYixinZhiChengCreditDecisionUrl() {
        return yixinZhiChengCreditDecisionUrl;
    }

    public void setYixinZhiChengCreditDecisionUrl(String yixinZhiChengCreditDecisionUrl) {
        this.yixinZhiChengCreditDecisionUrl = yixinZhiChengCreditDecisionUrl;
    }


    @DisconfFileItem(name = "yixin.yixinZhiChengCreditDecisionApiName", associateField = "yixinZhiChengCreditDecisionApiName")
    public String getYixinZhiChengCreditDecisionApiName() {
        return yixinZhiChengCreditDecisionApiName;
    }

    public void setYixinZhiChengCreditDecisionApiName(String yixinZhiChengCreditDecisionApiName) {
        this.yixinZhiChengCreditDecisionApiName = yixinZhiChengCreditDecisionApiName;
    }


    @DisconfFileItem(name = "yixin.user", associateField = "user")
    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    @DisconfFileItem(name = "yixin.passwd", associateField = "passwd")
    public String getPasswd() {
        return passwd;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }


    @DisconfFileItem(name = "yixin.apiUrl", associateField = "apiUrl")
    public String getApiUrl() {
        return apiUrl;
    }

    public void setApiUrl(String apiUrl) {
        this.apiUrl = apiUrl;
    }

    @DisconfFileItem(name = "yixin.apiUrlHttps", associateField = "apiUrlHttps")
    public String getApiUrlHttps() {
        return apiUrlHttps;
    }

    public void setApiUrlHttps(String apiUrlHttps) {
        this.apiUrlHttps = apiUrlHttps;
    }

    @DisconfFileItem(name = "yixin.userid", associateField = "userid")
    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    @DisconfFileItem(name = "yixin.rc4key", associateField = "rc4key")
    public String getRc4key() {
        return rc4key;
    }

    public void setRc4key(String rc4key) {
        this.rc4key = rc4key;
    }

    @DisconfFileItem(name = "yixin.publicKeyStr", associateField = "publicKeyStr")
    public String getPublicKeyStr() {
        return publicKeyStr;
    }

    public void setPublicKeyStr(String publicKeyStr) {
        this.publicKeyStr = publicKeyStr;
    }

    @DisconfFileItem(name = "yixin.urlYixinQueryLoan", associateField = "urlYixinQueryLoan")
    public String getUrlYixinQueryLoan() {
        return urlYixinQueryLoan;
    }

    public void setUrlYixinQueryLoan(String urlYixinQueryLoan) {
        this.urlYixinQueryLoan = urlYixinQueryLoan;
    }

    @DisconfFileItem(name = "yixin.urlYixinQueryBlackList", associateField = "urlYixinQueryBlackList")
    public String getUrlYixinQueryBlackList() {
        return urlYixinQueryBlackList;
    }

    public void setUrlYixinQueryBlackList(String urlYixinQueryBlackList) {
        this.urlYixinQueryBlackList = urlYixinQueryBlackList;
    }

    @DisconfFileItem(name = "yixin.urlYixinGueryCreditScore", associateField = "urlYixinGueryCreditScore")
    public String getUrlYixinGueryCreditScore() {
        return urlYixinGueryCreditScore;
    }

    public void setUrlYixinGueryCreditScore(String urlYixinGueryCreditScore) {
        this.urlYixinGueryCreditScore = urlYixinGueryCreditScore;
    }

    @DisconfFileItem(name = "yixin.urlYixinGetQueriedHistory", associateField = "urlYixinGetQueriedHistory")
    public String getUrlYixinGetQueriedHistory() {
        return urlYixinGetQueriedHistory;
    }

    public void setUrlYixinGetQueriedHistory(String urlYixinGetQueriedHistory) {
        this.urlYixinGetQueriedHistory = urlYixinGetQueriedHistory;
    }

    @Override
    public String toString() {
        return "YiXinProperties{" +
                "userid='" + userid + '\'' +
                ", rc4key='" + rc4key + '\'' +
                ", publicKeyStr='" + publicKeyStr + '\'' +
                ", urlYixinQueryLoan='" + urlYixinQueryLoan + '\'' +
                ", urlYixinQueryBlackList='" + urlYixinQueryBlackList + '\'' +
                ", urlYixinGueryCreditScore='" + urlYixinGueryCreditScore + '\'' +
                ", urlYixinGetQueriedHistory='" + urlYixinGetQueriedHistory + '\'' +
                ", user='" + user + '\'' +
                ", passwd='" + passwd + '\'' +
                ", apiUrl='" + apiUrl + '\'' +
                ", apiUrlHttps='" + apiUrlHttps + '\'' +
                ", yixinzhichengUserName='" + yixinzhichengUserName + '\'' +
                ", yixinzhichengSignKey='" + yixinzhichengSignKey + '\'' +
                ", yixinZhiChengCreditFraudUrl='" + yixinZhiChengCreditFraudUrl + '\'' +
                ", yixinZhiChengCreditFraudApiName='" + yixinZhiChengCreditFraudApiName + '\'' +
                ", yixinZhiChengCreditDecisionUrl='" + yixinZhiChengCreditDecisionUrl + '\'' +
                ", yixinZhiChengCreditDecisionApiName='" + yixinZhiChengCreditDecisionApiName + '\'' +
                '}';
    }
}
